import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
	state: {
		user: null
	},
	mutations: {
		setUser(state, userObj) {
			state.user = userObj
		},
		clearUser(state) {
			state.user = null;
		}
	},
	actions: {},
	modules: {}
})
